package cn.acheng1314.im.socket.model;

import cn.acheng1314.im.common.model.MessageBean;
import cn.acheng1314.im.socket.constant.ProtobufType;

import java.io.Serializable;

/**
 * 客户端心跳响应
 */
public class PongMessage implements Serializable, MessageBean {

    private static final long serialVersionUID = 1L;
    private static final String TAG = "pong";
    private static final String content = "pong";
    private static final PongMessage OBJECT = new PongMessage();

    private PongMessage() {
    }

    public static PongMessage getInstance() {
        return OBJECT;
    }

    @Override
    public String toString() {
        return TAG;
    }

    @Override
    public byte[] getBody() {
        return content.getBytes();
    }

    @Override
    public byte getType() {
        return ProtobufType.Pong;
    }
}
